Delta DVP Series PLC Communication driver

 

Delta DVP Series PLC Communication Driver is the driver to communicate with Delta DVP Series PLC of Delta Electronics Public Company Ltd. in the Taiwan.

 

 

1. Read settings

 

<Figure 1> is Delta DVP Series PLC Communication Driver¡¯s read setting examples.

 

<Figure 1> Delta DVP Series PLC Communication Driver¡¯s read setting examples

 

<Figure 1> is the screen where Com Port(COM1), Baud Rate(9600), Parity Bit(2), Data Bit(7), Stop Bit(1) are input in DEVICE.

Baud Rate, Parity Bit, Data Bit, Stop Bit are set on the order of PLC settings.

Delta DVP Series PLC communication speed is set from the Ladder Program.

 

 

Delta DVP Series PLC Communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1)     STATION - Input station ID between 0 ~ 255.

2)     Read memory type - Memory type = S, X, Y, M, T, C, D. (Refer to <Table 1>)

3)     Read Start Address – Read start address in each memory type.

4)     Save Start Address for Communication Server - Input save start address of communication server.

5)     Read Size - Set the size of the read. Read size = 1 ~ 100.

Read size of BYTE memory type(DB, Db, ¡¦) = BYTE unit(1byte),

Read size of WORD memory type(D, DW, ¡¦) = WORD unit(2byte),

Read size of double WORD memory type(DD, Dd, ¡¦) = Double WORD unit(4byte),

Read size of FLOAT memory type(DF, Df, DF2, ¡¦) = float unit(4byte),

Read size of DOUBLE memory type(DFD, DfD, ¡¦) = double unit(8byte),

 

Read schedule example

READ,     1,     D,     0,    0,   16,

READ,     1,     D,    50,   50,   10,

 

<Table 1> is a description of read memory types and data types of Delta DVP Series PLC Communication Driver. 

Memory Contents Data type Remarks
S S Memory read

Bit Memory area WORD unit Read

Read Size = WORD unit

Example) Read Size : 1 = 16-Bit data reading.

X X Memory read
Y Y Memory read
M M Memory read
T T Memory read

WORD/DWORD/

Float/Double unit Read

Memory Type = D, DD, Dd, DF, Df, DF2, DFD, DfD

D = WORD unit Read(2 byte),

DD = DWORD HI/LO unit Read(4 byte),

Dd = DWORD LO/HI Type, reading(4 byte),

DF = Float HI/LO unit Read(4 byte),

Df = Float LO/HI unit Read(4 byte),

DF2 = Float HI/LO 2 unit Read(4 byte),

DFD, DfD = double unit Read(8 byte).

C C Memory read
D D Memory read

<Table 1> Read memory types and data types of Delta DVP Series PLC Communication Driver

 

If you click the icon ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: 2  in protocol option part, you can see the dialogue box such as <Figure 2>.

you can also set read schedule by using this part.

 

<Figure 2> Example of Delta DVP Series PLC Communication Driver¡¯s Option dialogue box

 

You can set read schedule by using ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: 3 , ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: 4 , ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: ¼³¸í: 5  button and listbox of <Figure 2>.

 

<Figure 3> Example of Delta DVP Series PLC Communication Driver¡¯s read schedule Add/Edit dialogue box

 

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.

 

 

2. Writing settings

You can change the setting values of Delta DVP Series PLC by using write commands.

 

 

Bit write

Bit write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION               Input station ID between 0 ~ 255.

3)  ADDRESS            Top 3-digit (decimal): 0 ~ WORD unit address in Memory type.

last 1-digit (in hexadecimal): 0-F bit pos.

4)  Extra1                   Memory type = S, X, Y, M, T, C.

5)  Extra2                   Don¡¯t care.

 

Write example 1)

PORT : 0   STATION : 1   ADDRESS : 0005  EXTRA1 : S  EXTRA2 : 0

The setting parameter shown above is an example of bit write(ON/OFF) in S memory 0 WORD, 5 BIT of Delta DVP Series PLC connected with 0 port, set to 1 station.

 

Write example 1)

PORT : 0   STATION : 1   ADDRESS : 001F  EXTRA1 : S  EXTRA2 : 0

The setting parameter shown above is an example of bit write(ON/OFF) in S memory 1 WORD, F BIT of Delta DVP Series PLC connected with 0 port, set to 1 station.

 

Setup example 2)

PORT : 0   STATION : 1   ADDRESS : 005A  EXTRA1 : S  EXTRA2 : 0

The setting parameter shown above is an example of bit write(ON/OFF) in S memory 5 WORD, A BIT of Delta DVP Series PLC connected with 0 port, set to 1 station.

 

 

Word write

Word write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION               Input station ID between 0 ~ 255.

3)  ADDRESS            0 ~ WORD unit address(decimal) in Memory type.

4)  Extra1                   Memory type = T, C, D.

D, DD, Dd, DF, Df, DF2, DFD, DfD, ¡¦ memory type can be set(Refer to <Table 1>).

5)  Extra2                   Don¡¯t care.

 

 

Write example 1)

PORT : 0   STATION : 1   ADDRESS : 0000  EXTRA1 : D  EXTRA2 : 0

The setting parameter shown above is an example of word write in D memory 0 WORD address of Delta DVP Series PLC connected with 0 port, set to 1 station.

 

Setup example 2)

PORT : 0   STATION : 1   ADDRESS : 0012  EXTRA1 : D  EXTRA2 : 0

The setting parameter shown above is an example of word write in D memory 12 WORD address of Delta DVP Series PLC connected with 0 port, set to 1 station.

 

Settings, for example, 3)

PORT : 0   STATION : 1   ADDRESS : 0123  EXTRA1 : D  EXTRA2 : 0

The setting parameter shown above is an example of word write in D memory 123 WORD address of Delta DVP Series PLC connected with 0 port, set to 1 station.

 

 

Block write

Block write comes to be executed by ¡®PlcScanWriteBlock¡¯ script function.

Available script variables are ushort, uint, float, double.

You can write to T, C, D PLC memory such as DD, Dd, DF, Df, DF2, DFD(Refer to <Table 1>).

 

Script name and format: @PlcScanWriteBlock(int port, int station, int address, string extra1, string extra2, object array_value, int array_size);

   Scripting example 1)

If you want to set by 12, 13, 14, 15 in D memory 5, 6, 7, 8 WORD format address.

 

             ushort   writeVal[4];

 

             writeVal[0] = 12;

writeVal[1] = 13;

writeVal[2] = 14;

writeVal[3] = 15;

@PlcScanWriteBlock(0, 0, 5, ¡°D¡±, ¡°¡±, writeVal, 4);

 

   Scripting example 1)

If you want to set by 1.1, 1.2, 1.3, 1.4 in D memory 10, 12, 14, 16 Float LO/HI word format address.

 

             float   fWriteVal[4];

 

             fWriteVal [0] = 1.1;

fWriteVal [1] = 1.2;

fWriteVal [2] = 1.3;

fWriteVal [3] = 1.4;

@PlcScanWriteBlock(0, 0, 10, ¡°Df¡±, ¡°¡±, fWriteVal, 4);

 

 

Important) Block write is available only WORD/DWORD/FLOAT/DOUBLE unit.

Also Block write is supported 10.1.4.3 version or higher.

 

 

3. Communication Cable Connection of Delta DVP Series PLC

You can connect Delta DVP Series PLC and communication cable in the following ways.

 

Ladder port communication cable connection

Ladder cable connects to ladder connector and computer port.

 

RS-485 communication cable connection

Connects Delta DVP Series PLC¡¯s RS-485 +,- pin and computer's RS-485 +, - pin respectively.

<Figure 4> shows the appearance of Delta DVP Series PLC and <Table 2> is DVP Series PLC¡¯s address range of device memory.

 

<Figure 4> Appearance of Delta DVP Series PLC

 

Device Range Type Address Effective range
ES/EX/SS SA/SX/SH EH
S 000~255 bit 0000~00FF 0~127 0~1023 0~1023
S 246~511 bit 0100~01FF
S 512~767 bit 0200~02FF
S 768~1023 bit 0300~03FF
X 000~377 (Octal) bit 0400~04FF 0~177 0~177 000~377
Y 000~377 (Octal) bit 0500~05FF
T 000~255 bit/word 0600~06FF 0~127 000~255 000~255
M 000~255 bit 0800~08FF 0~1279 0~4095 0000~4095
M 256~511 bit 0900~09FF
M 512~767 bit 0A00~0AFF
M 768~1023 bit 0B00~0BFF
M 1024~1279 bit 0C00~0CFF
M 1280~1535 bit 0D00~0DFF
M 1536~1791 bit B000~B0FF
M 1792~2047 bit B100~B1FF
M 2048~2303 bit B200~B2FF
M 2304~2559 bit B300~B3FF
M 2560~2815 bit B400~B4FF
M 2816~3071 bit B500~B5FF
M 3072~3327 bit B600~B6FF
M 3328~3583 bit B700~B7FF
M 3584~3839 bit B800~B8FF
M 3840~4095 bit B900~B9FF
C 0~199

16-bit

bit/word 0E00~0EC7 0~127 0~199 0~199
200~255

32-bit

bit/Dword 0EC8~0EFF 232~255 200~255 200~255
D 000~256 word 1000~10FF 0~1311 0~4999 0000~9999  
D 256~511 word 1100~11FF
D 512~767 word 1200~12FF
D 768~1023 word 1300~13FF
D 1024~1279 word 1400~14FF
D 1280~1535 word 1500~15FF
D 1536~1791 word 1600~16FF
D 1792~2047 word 1700~17FF
D 2048~2303 word 1800~18FF
D 2304~2559 word 1900~19FF
D 2560~2815 word 1A00~1AFF
D 2816~3071 word 1B00~1BFF
D 3072~3327 word 1C00~1CFF
D 3328~3583 word 1D00~1DFF
D 3584~3839 word 1E00~1EFF
D 3840~4095 word 1F00~1FFF
D 4096~4351 word 9000~90FF
D 4352~4607 word 9100~91FF
D 4608~4863 word 9200~92FF
D 4864~5119 word 9300~93FF
D 5120~5375 word 9400~94FF
D 5376~5631 word 9500~95FF
D 5632~5887 word 9600~96FF
D 5888~6143 word 9700~97FF
D 6144~6399 word 9800~98FF
D 6400~6655 word 9900~99FF
D 6656~6911 word 9A00~9AFF
D 6912~7167 word 9B00~9BFF
D 7168~7423 word 9C00~9CFF
D 7424~7679 word 9D00~9DFF
D 7680~7935 word 9E00~9EFF
D 7936~8191 word 9F00~9FFF
D 8192~8447 word A000~A0FF
D 8448~8703 word A100~A1FF
D 8704~8959 word A200~A2FF
D 8960~9215 word A300~A3FF
D 9216~9471 word A400~A4FF
D 9472~9727 word A500~A5FF
D 9728~9983 word A600~A6FF
D 9984~9999 word A700~A70F
<Table 2> DVP Series PLC¡¯s address range of device memory